package com.example.springcloud.service.fallback;

import com.example.springcloud.entities.CommonResult;
import com.example.springcloud.entities.Payment;
import com.example.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> getPaymentById(Long id) {
        return new CommonResult<Payment>(500,"接口出错",null);
    }

    @Override
    public String paymentFeignTimeout() {
        return "-------PaymentFallbackService fall back-paymentFeignTimeout";
    }
}
